import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from "../views/Index";
import Login from "../views/Login";
import LoginFail from "../views/LoginFail";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/index',
    name: 'Index',
    component: Index
  },
  {
    path: '/loginFail',
    name: 'loginFail',
    component: LoginFail
  },
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
